package com.matt.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.matt.foundation.model.Domain;
import com.matt.foundation.retention.FieldMeta;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/7/18
 * *******************************
 */
@Data
@Table(name = "leads_user")
@Entity
@EqualsAndHashCode(callSuper = true)
public class LeadsUser extends Domain {

    private String id;
    @Column(columnDefinition = "varchar(255) COMMENT '线索id'")
    private String leadsId;
    @Column(columnDefinition = "varchar(255) COMMENT '线索大名'")
    private String childBigName;
    @Column(columnDefinition = "varchar(255) COMMENT '园区id'")
    private String areaId;


    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column(columnDefinition = " datetime DEFAULT NULL COMMENT '家长生日' ")
    private Date birthDay;
    @FieldMeta(name = "家长姓名")
    @Column(columnDefinition = "varchar(255) COMMENT '家长姓名'")
    private String userName;

    @FieldMeta(name = "手机号")
    @Column(columnDefinition = "varchar(255) COMMENT '手机号'")
    private String mobile;
    @FieldMeta(name = "关系")
    @Column(columnDefinition = "varchar(255) COMMENT '关系'")
    private String relationship;

    @FieldMeta(name = "家庭住址")
    @Column(columnDefinition = "varchar(255) COMMENT '家庭住址'")
    private String address;

    @FieldMeta(name = "备注")
    @Column(columnDefinition = "varchar(255) COMMENT '备注'")
    private String remarks;

    @Column(columnDefinition = "int default 1 COMMENT ' 联系人类型（1.第一联系人,2.第二联系人,3.第三联系人）'")
    private Integer type ;




}
